$(function () {
    $("#subscribe").click(
        function () {
            $.ajax({
                url: "subscribe/add",
                type: "post",
                data: {
                    "email": $(".f_subs_widget .form-control").val()
                },
                success: function (result) {
                    if (result.code == 200 && result.data) {
                        alert("订阅成功");
                    } else {
                        alert(result.message);
                    }
                }
            });
        }
    );
});